movlw B'00000001' movwf LATC loop1: lslf LATC,1 btfss LATC, 3 goto loop1 loop2: lsrf LATC,1 btfss LATC, 0 goto loop2 goto loop1